export function setToken(token){
  localStorage.setItem('token',token)
}

export function getToken(){
  console.log(localStorage.getItem('token'))
  return localStorage.getItem('token')
}

export function removeToken(){
  localStorage.removeItem('token')
}

export function setUser(user){
  localStorage.setItem('user',JSON.stringify(user))
}

export function getUser(){
  return JSON.parse(localStorage.getItem('user'))
}